<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page import="com.topinfo.component.base.common.CacheConfig" %>
<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <base href="<%= request.getContextPath()%>"/>
    <title>V2.0-登录页</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=Edge; chrome=1"/>
    <meta name="renderer" content="webkit">
    <%@include file="/WEB-INF/jsp/common/meta.jsp" %>
    <link rel="icon" href="<%=contextPath%>/resource/fb-desktop/img/login/favicon.ico" type="image/x-icon"/>
    <link rel="shortcut icon" href="<%=contextPath%>/resource/fb-desktop/img/login/favicon.ico" type="image/x-icon"/>
    <link href="<%=contextPath%>/resource/fb-classic/css/login/login.css" rel="stylesheet">
    <link href="<%=contextPath%>/resource/fb-classic/skyblue_login/css/login/login.min.css" rel="stylesheet">
</head>
<body>
<div class="ui-login-header">
    <div class="ui-login-logo">
        <h1><a href="<%=contextPath%>/"> </a></h1>
        <div class="ui-login-help">
            <a href="#" target="_blank">帮助</a>
        </div>
    </div>
</div>

<div class="ui-login-body">
    <div class="ui-login-body-content">
        <div class="ui-login-form">
            <div class="ui-login-form-title">
                <span>欢迎登录</span>
            </div>
            <div class="ui-login-form-content">
                <div class="ui-login-form-field">
                    <label class="ui-login-form-field-icon icon_user" for="name"></label>
                    <input class="ui-login-form-field-input" type="text" id="name" autocomplete="off"/>
                    <span class="ui-login-form-field-placeholder">用户名</span>
                </div>
                <div class="ui-login-form-field">
                    <label class="ui-login-form-field-icon icon_password" for="password"></label>
                    <input class="ui-login-form-field-input" type="password" id="password"/>
                    <span class="ui-login-form-field-placeholder">密码</span>
                </div>
                <%--<div class="ui-login-form-field">
                <input type="checkbox" class="ui-login-form-field-input ui-login-form-field-input-save"><label class="ui-login-form-field-icon icon_save">保存密码</label>
                </div>--%>
                <div class="ui-login-form-field captcha_field">
                    <%--<label class="ui-login-form-field-icon icon_captcha"></label>--%>
                    <input class="ui-login-form-field-input" type="text" maxlength="4" id="captcha" autocomplete="off"/>
                    <span class="ui-login-form-field-placeholder">验证码</span>
                    <img id="captcha_image" src="<%=contextPath%>/captcha" title="点击刷新验证码" alt="验证码"/>
                </div>
            </div>
            <div class="ui-login-form-action">
                <button id="login_btn">登 录</button>
            </div>
            <div class="ui-login-footr">客服电话：4000-119-321</div>
        </div>
    </div>
</div>
<div class="ui-login-footer">
    <div class="ui-login-footer-copyright">
        <p>建设单位：</p>
        <p>技术支持：浙江图讯科技股份有限公司</p>
        <p>当前版本：<%=CacheConfig.getProperty("project.system.version")%></p>
    </div>
</div>

<script>if (window != top)top.location.href = location.href; </script>
<script src="<%=contextPath%>/resource/fb.min.js"></script>
<script>
    fb.use("_fbClassic_/js/login/login", function (login) {
        login.url.login = GLOBAL_CONFIG.contextPath + "/security/permission/login";
        login.url.show = GLOBAL_CONFIG.contextPath + "/security/permission/show";
        login.url.captcha = GLOBAL_CONFIG.contextPath + "/captcha";
        login.url.success = GLOBAL_CONFIG.contextPath + "/fb-classic/main.jsp";
        login.message.login_error = "用户名或密码或验证码错误";
        login.getParams = function (data) {
            return {
                captcha: data.captcha,
                parau: $.base64.encode(data.name.substring(0,<%=CacheConfig.getNamePassMaxLength()%>)),
                parap: $.base64.encode(data.password.substring(0,<%=CacheConfig.getNamePassMaxLength()%>))
            }
        }
    });
</script>
</body>
</html>

